
int main () {
    double value = 33;
    int i;

    #pragma acc kernels copy(value) create(i)
    {
        #pragma acc loop
        for (i = 0; i < 100; i++)
            value = 1;

        printf("** value %g == 33? \n", value);

        #pragma acc update host(value)
        printf("** value %g == 1? \n", value);
        value = 44;
        #pragma acc update device(value)
    }

    printf("** Value  %g == 44? \n", value);

}
